<?php
/**
 * 课目录
 * Class StudyAction
 */
class StudyAction extends BaseAction
{
    public function index()
    {

    }

    /**
     * 课程下面课程信息
     */
    public function item()
    {
        $cid = intval(I('get.cid'));
        $lid = intval(I('get.lid'));
        $StudyModel = D('Study');
        $study = $StudyModel->find($lid);
        $studys = $StudyModel->where("cid = $cid")->field('itemid, cid, index, title, description, vurl')->select();
        $this->assign('study', $study);
        $this->assign('studys', $studys);
        $this->display();
    }
}